import { createRouter, createWebHistory } from 'vue-router';
import Home from '../components/Home.vue';
import FileTransfer from '../components/FileTransfer.vue';
import DeviceDiscovery from '../components/DeviceDiscovery.vue';
import CloudStorage from '../components/CloudStorage.vue';

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home,
    },
    {
      path: '/transfer',
      name: 'transfer',
      component: FileTransfer,
    },
    {
      path: '/discovery',
      name: 'discovery',
      component: DeviceDiscovery,
    },
    {
      path: '/cloud',
      name: 'cloud',
      component: CloudStorage,
    },
  ],
});

export default router; 